import { ref } from "vue";
import { loadCategoriesAPI } from "../services/products";

//获取商品分类数据
export const useProductCategory = () => {
  const categories = ref([]);
  loadCategoriesAPI().then((res) => {
    categories.value = res.data;
  });
  return { categories };
};
